package com.cssnj.portal.domain.manage;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

/**
 *
 *
 * @author Arthur
 * @version 1.0
 * @since 2018/9/11 22:02
 */
public class YyGnJrJsSmEntityPK implements Serializable {
    private String gnId;
    private String fjlj;

    @Column(name = "GN_ID")
    @Id
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Column(name = "FJLJ")
    @Id
    public String getFjlj() {
        return fjlj;
    }

    public void setFjlj(String fjlj) {
        this.fjlj = fjlj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YyGnJrJsSmEntityPK that = (YyGnJrJsSmEntityPK) o;
        return Objects.equals(gnId, that.gnId) &&
                Objects.equals(fjlj, that.fjlj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(gnId, fjlj);
    }
}
